package com.example.myapplication.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.io.Serializable;



@Entity
public class User implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id(autoincrement = true)
    private long id;//主键
    private String user_id;//用户ID
    private String name;//姓名
    private String password;//密码
    private String head_url;//头像

    private String sex;//性别
    private String email;//邮箱
    private String phone;//手机号

    @Generated(hash = 1592367703)
    public User(long id, String user_id, String name, String password,
            String head_url, String sex, String email, String phone) {
        this.id = id;
        this.user_id = user_id;
        this.name = name;
        this.password = password;
        this.head_url = head_url;
        this.sex = sex;
        this.email = email;
        this.phone = phone;
    }

    @Generated(hash = 586692638)
    public User() {
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getHead_url() {
        return head_url;
    }

    public void setHead_url(String head_url) {
        this.head_url = head_url;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
